import { Button, Col, Row } from 'antd';
import { WeaSwitch, WeaTableNew } from 'comsMobx'
import { WeaHelpfulTip, WeaInputNumber, WeaSelect, WeaLocaleProvider, WeaTable, WeaError, WeaBrowser, WeaFormItem } from 'ecCom';
import { each } from 'lodash';
import { observer, toJS } from 'mobx-react';
import * as React from 'react';
import * as Operator from './operatorData';
//const WeaTable = WeaTableNew.WeaTable;
const getLabel = WeaLocaleProvider.getLabel;

@observer
export default class OperatorSet extends React.Component {
    render() {
        const optionsLabel = {
            0:
                [{
                    disabled: false, key: '0', selected: true, showname: getLabel('502663', '指定人'), visible: true,
                }, {
                    disabled: false, key: '1', selected: false, showname: getLabel('502664', '指定部门'), visible: true,
                }, {
                    disabled: false, key: '2', selected: false, showname: getLabel('502665', '指定分部'), visible: true,
                }, {
                    disabled: false, key: '3', selected: false, showname: getLabel('502666', '指定角色'), visible: true,
                }, {
                    disabled: false, key: '4', selected: false, showname: getLabel('502667', '指定岗位'), visible: true,
                }, {
                    disabled: false, key: '5', selected: false, showname: getLabel('5026681', '所有人'), visible: true,
                }],
            1:
                [{
                    disabled: false, key: '6', selected: true, showname: getLabel('502669', '本人'), visible: true,
                },
                // {
                //     disabled: false, key: "16", selected: true, showname: getLabel('683', '安全级别'), visible: true
                // }
                ],
            2:
                [{
                    disabled: false, key: '7', selected: true, showname: getLabel('502670', '本部门'), visible: true,
                }, {
                    disabled: false, key: '8', selected: false, showname: getLabel('502671', '本部门角色'), visible: true,
                }, {
                    disabled: false, key: '9', selected: false, showname: getLabel('502672', '本部门岗位'), visible: true,
                },
                    // {
                    //     disabled: false, key: "10", selected: false, showname: getLabel('502673','部门扩展字段'), visible: true
                    // }
                ],
            3:
                [{
                    disabled: false, key: '11', selected: true, showname: getLabel('30792', '本分部'), visible: true,
                }, {
                    disabled: false, key: '12', selected: false, showname: getLabel('502674', '本分部角色'), visible: true,
                }, {
                    disabled: false, key: '13', selected: false, showname: getLabel('502675', '本分部岗位'), visible: true,
                },
                    // {
                    //     disabled: false, key: "14", selected: false, showname: getLabel('502676','分部扩展字段'), visible: true
                    // }
                ],
            4:
                [{
                    disabled: false, key: '15', selected: true, showname: getLabel('502677', '人力资源相关字段'), visible: true,
                },
                    // {
                    //     disabled: false, key: "16", selected: false, showname: getLabel('502678','部门相关字段'), visible: true
                    // }, {
                    //     disabled: false, key: "17", selected: false, showname: getLabel('502679','分部相关字段'), visible: true
                    // }
                ],
        };
        const { store } = this.props;
        const { dynamicNodeForm:form, itemType, changeItemType } = store;
        //const { form, changeItem, itemType, operatorTableStore } = addNodeForm;
        const nodetype = form.$('nodeType').values();
        const operatorType = form.$('operatorType').values();

        const options1 = [{
            disabled: false, key: "0", selected: true, showname: getLabel('528161','指定人员') , visible: true
        }, {
            disabled: false, key: "1", selected: false, showname: getLabel('502664', '指定部门'), visible: true
        }, {
            disabled: false, key: "2", selected: false, showname: getLabel('502665', '指定分部'), visible: true
        }, {
            disabled: false, key: "3", selected: false, showname: getLabel('502666', '指定角色'), visible: true
        }, {
            disabled: false, key: "4", selected: false, showname: getLabel('502667', '指定岗位'), visible: true
        }, {
            disabled: false, key: "5", selected: false, showname: getLabel('502668', '所有人'), visible: true
        }];
        if (store.disableAll) options1.splice(5, 1);

        const key = nodetype === "0" ? "0" : (parseInt(operatorType) + 1) + "";
        const options = key === "0" ? options1:optionsLabel[key];


        const columns = [{
            title: getLabel('502365', '类型'),
            dataIndex: 'type',
            key: 'type',
            width: "20%",
        }, {
            title: getLabel('502347', '名称'),
            dataIndex: 'name',
            key: 'name',
            width: "30%",
        }, {
            title: getLabel('502366', '级别'),
            dataIndex: 'levelString',
            key: 'levelString',
            width: "20%",
        }];
        const rowSelection = {
            type: 'checkbox',
            selectedRowKeysAllPages: store.selectedRowKeysAllPages,
            onChange: (v1, v2) => {
                store.selectedRowKeysAllPages = v1;
            }
        };
        const formInfo = {
            0: {
                items: [{
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-coms-hrm',
                        iconBgcolor: '#217346',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        maxBrowerHeight: 20,
                        linkUrl: '/spa/hrm/index_mobx.html#/main/hrm/card/cardInfo/',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('83496', '多人力资源'),
                        type: '17',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                    style: { width: 200 },
                }],
                linkAge: {},
            },
            1: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-coms-hrm',
                        iconBgcolor: '#217346',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        maxBrowerHeight: 20,
                        linkUrl: '/spa/hrm/engine.html#/hrmengine/organization?showTree=false&type=department&id=',
                        tabs: [{
                            key: '2',
                            name: getLabel('505968', '组织结构'),
                            dataURL: null,
                            dataParams: null,
                            isSearch: false,
                            showOrder: 0,
                            selected: false,
                        }, {
                            key: '1',
                            name: getLabel('505969', '按列表'),
                            dataURL: null,
                            dataParams: {
                                list: '1',
                            },
                            isSearch: true,
                            showOrder: 0,
                            selected: false,
                        }],
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        showCheckStrictly: true,
                        title: getLabel(502298, '部门'),
                        type: '57',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }, {
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SCOPE',
                    detailtype: 1,
                    domkey: ['level'],
                    // endValue: "100",
                    fieldcol: 7,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('683', '安全级别'),
                    labelcol: 6,
                    length: 0,
                    width: 'auto',
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    otherParams: {
                        hideOps: true,
                        max: [-123456789, 1234567890],
                        min: [-123456789, 1234567890],
                    },
                    precision: 0,
                    showOrder: 0,
                    startValue: '0',
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            10: {
                items: [{
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-coms-hrm',
                        iconBgcolor: '#217346',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        linkUrl: '/spa/hrm/index_mobx.html#/main/hrm/card/cardInfo/',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        tabs: [{
                            isSearch: false,
                            key: '1',
                            name: getLabel('24515', '最近'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '2',
                            name: getLabel('18511', '同部门'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '3',
                            name: getLabel('15089', '我的下属'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '4',
                            name: getLabel('25332', '组织结构'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '5',
                            name: getLabel('81554', '常用组'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '6',
                            name: getLabel(502668, '所有人'),
                            selected: false,
                            showOrder: 0,
                        }],
                        title: getLabel('83496', '多人力资源'),
                        type: '17',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }],
                linkAge: {},
            },
            11: {
                items: [{
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SCOPE',
                    detailtype: 1,
                    domkey: ['level'],
                    // endValue: "100",
                    fieldcol: 7,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('683', '安全级别'),
                    labelcol: 6,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    otherParams: {
                        hideOps: true,
                        max: [-123456789, 1234567890],
                        min: [-123456789, 1234567890],
                    },
                    precision: 0,
                    showOrder: 0,
                    startValue: '0',
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            12: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-toolbar-Organization-list',
                        iconBgcolor: '#B32E37',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: true,
                        linkUrl: '/spa/hrm/engine.html#/hrmengine/roleInfo/info?id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('122', '角色'),
                        type: '267',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }],
                linkAge: {},
            },
            13: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        linkUrl: '/hrm/jobtitles/HrmJobTitlesEdit.jsp?id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('27219', '多岗位'),
                        type: '278',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }],
                linkAge: {},
            },
            2: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-coms-hrm',
                        iconBgcolor: '#217346',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        maxBrowerHeight: 20,
                        linkUrl: '/spa/hrm/engine.html#/hrmengine/organization?showTree=false&type=subcompany&id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        showCheckStrictly: true,
                        tabs: [{
                            key: '2',
                            name: getLabel('505968', '组织结构'),
                            dataURL: null,
                            dataParams: null,
                            isSearch: false,
                            showOrder: 0,
                            selected: false,
                        }, {
                            key: '1',
                            name: getLabel('505969', '按列表'),
                            dataURL: null,
                            dataParams: {
                                list: '1',
                            },
                            isSearch: true,
                            showOrder: 0,
                            selected: false,
                        }],
                        title: getLabel(502299, '分部'),
                        type: '194',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }, {
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SCOPE',
                    detailtype: 1,
                    domkey: ['level'],
                    // endValue: "100",
                    fieldcol: 7,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('683', '安全级别'),
                    labelcol: 6,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    otherParams: {
                        hideOps: true,
                        max: [-123456789, 1234567890],
                        min: [-123456789, 1234567890],
                    },
                    precision: 0,
                    showOrder: 0,
                    startValue: '0',
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            3: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-toolbar-Organization-list',
                        iconBgcolor: '#B32E37',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: true,
                        linkUrl: '/spa/hrm/engine.html#/hrmengine/roleInfo/info?id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('122', '角色'),
                        type: '267',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }, {
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SELECT',
                    detailtype: 1,
                    domkey: ['rolelevel'],
                    fieldcol: 3,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('139', '级别'),
                    labelcol: 3,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    options: [{
                        disabled: false,
                        key: '0',
                        selected: true,
                        showname: getLabel(502298, '部门'),
                        visible: true,
                    }, {
                        disabled: false,
                        key: '1',
                        selected: false,
                        showname: getLabel(502299, '分部'),
                        visible: true,
                    },
                    // {
                    //     disabled: false,
                    //     key: "3",
                    //     selected: false,
                    //     showname: getLabel('22753','上级分部'),
                    //     visible: true
                    // },
                    {
                        disabled: false,
                        key: '2',
                        selected: false,
                        showname: getLabel('140', '总部'),
                        visible: true,
                    }],
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }],
                linkAge: {},
            },
            4: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        maxBrowerHeight: 20,
                        linkUrl: '/hrm/jobtitles/HrmJobTitlesEdit.jsp?id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('27219', '多岗位'),
                        type: '278',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }, {
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SELECT_LINKAGE',
                    detailtype: 1,
                    domkey: ['joblevel'],
                    fieldcol: 2,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('28169', '岗位级别'),
                    labelcol: 2,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    options: [{
                        disabled: false,
                        key: '2',
                        selected: true,
                        showname: getLabel('140', '总部'),
                        visible: true,
                    }, {
                        disabled: false,
                        key: '0',
                        selected: false,
                        showname: getLabel('502664', '指定部门'),
                        visible: true,
                    }, {
                        disabled: false,
                        key: '1',
                        selected: false,
                        showname: getLabel('502665', '指定分部'),
                        visible: true,
                    }],
                    otherParams: {
                        className: 'job',
                    },
                    precision: 0,
                    selectLinkageDatas: {
                        0: {
                            belong: 'PC',
                            browserConditionParam: {
                                asynLoadAll: false,
                                checkStrictly: true,
                                completeParams: {},
                                conditionDataParams: {},
                                dataParams: {},
                                defaultExpandedLevel: 0,
                                destDataParams: {},
                                expandfirstnode: false,
                                hasAddBtn: false,
                                hasAdvanceSerach: true,
                                hasBorder: false,
                                hideVirtualOrg: false,
                                icon: 'icon-coms-hrm',
                                iconBgcolor: '#217346',
                                idSeparator: ',',
                                isAutoComplete: 1,
                                isDetail: 0,
                                isMultCheckbox: false,
                                // isSingle: false,
                                isSingle: true,
                                linkUrl: '/spa/hrm/engine.html#/hrmengine/organization?showTree=false&type=department&id=',
                                pageSize: 10,
                                quickSearchName: '',
                                replaceDatas: [],
                                showCheckStrictly: true,
                                tabs: [{
                                    isSearch: false,
                                    key: '2',
                                    name: getLabel('25332', '组织结构'),
                                    selected: false,
                                    showOrder: 0,
                                }, {
                                    dataParams: {
                                        list: '1',
                                    },
                                    isSearch: true,
                                    key: '1',
                                    name: getLabel('130619', '按列表'),
                                    selected: false,
                                    showOrder: 0,
                                }],
                                // title: getLabel('83497', '多部门'),
                                // type: "57",
                                title: getLabel(502298, '部门'),
                                type: '4',
                                viewAttr: 3,
                            },
                            checkbox: false,
                            colSpan: 2,
                            conditionType: 'BROWSER',
                            detailtype: 1,
                            domkey: ['jobid_dept'],
                            fieldcol: 4,
                            hasBorder: false,
                            helpfulTipProps: {},
                            isQuickSearch: false,
                            label: 'null',
                            labelcol: 0,
                            length: 0,
                            maxFilesNumber: 0,
                            maxUploadSize: 0,
                            multiSelection: false,
                            precision: 0,
                            showOrder: 0,
                            stringLength: 0,
                            tipPosition: 'bottom',
                            viewAttr: 2,
                        },
                        1: {
                            belong: 'PC',
                            browserConditionParam: {
                                asynLoadAll: false,
                                checkStrictly: true,
                                completeParams: {},
                                conditionDataParams: {},
                                dataParams: {},
                                defaultExpandedLevel: 0,
                                destDataParams: {},
                                expandfirstnode: false,
                                hasAddBtn: false,
                                hasAdvanceSerach: true,
                                hasBorder: false,
                                hideVirtualOrg: false,
                                icon: 'icon-coms-hrm',
                                iconBgcolor: '#217346',
                                idSeparator: ',',
                                isAutoComplete: 1,
                                isDetail: 0,
                                isMultCheckbox: false,
                                // isSingle: false,
                                isSingle: true,
                                linkUrl: '/spa/hrm/engine.html#/hrmengine/organization?showTree=false&type=subcompany&id=',
                                pageSize: 10,
                                quickSearchName: '',
                                replaceDatas: [],
                                showCheckStrictly: true,
                                tabs: [{
                                    isSearch: false,
                                    key: '2',
                                    name: getLabel('25332', '组织结构'),
                                    selected: false,
                                    showOrder: 0,
                                }, {
                                    dataParams: {
                                        list: '1',
                                    },
                                    isSearch: true,
                                    key: '1',
                                    name: getLabel('130619', '按列表'),
                                    selected: false,
                                    showOrder: 0,
                                }],
                                // title: getLabel('25512', '多分部'),
                                // type: "194",
                                title: getLabel(502299, '分部'),
                                type: '164',
                                viewAttr: 3,
                            },
                            checkbox: false,
                            colSpan: 2,
                            conditionType: 'BROWSER',
                            detailtype: 1,
                            domkey: ['jobid_subcom'],
                            fieldcol: 4,
                            hasBorder: false,
                            helpfulTipProps: {},
                            isQuickSearch: false,
                            label: 'null',
                            labelcol: 0,
                            length: 0,
                            maxFilesNumber: 0,
                            maxUploadSize: 0,
                            multiSelection: false,
                            precision: 0,
                            showOrder: 0,
                            stringLength: 0,
                            tipPosition: 'bottom',
                            viewAttr: 2,
                        },
                    },
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            5: {
                items: [{
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SCOPE',
                    detailtype: 1,
                    domkey: ['level'],
                    // endValue: "100",
                    fieldcol: 7,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('683', '安全级别'),
                    labelcol: 6,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    otherParams: {
                        hideOps: true,
                        max: [-123456789, 1234567890],
                        min: [-123456789, 1234567890],
                    },
                    precision: 0,
                    showOrder: 0,
                    startValue: '0',
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            6: {
                items: [],
                linkAge: {},
            },
            16: {
                items: [{
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SCOPE',
                    detailtype: 1,
                    domkey: ['level'],
                    // endValue: "100",
                    fieldcol: 7,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('683s', '5安全级别'),
                    labelcol: 6,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    otherParams: {
                        hideOps: true,
                        max: [-123456789, 1234567890],
                        min: [-123456789, 1234567890],
                    },
                    precision: 0,
                    showOrder: 0,
                    startValue: '0',
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            7: {
                items: [{
                    belong: 'PC',
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'SCOPE',
                    detailtype: 1,
                    domkey: ['level'],
                    // endValue: "100",
                    fieldcol: 7,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: getLabel('683', '安全级别'),
                    labelcol: 6,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    otherParams: {
                        hideOps: true,
                        max: [-123456789, 1234567890],
                        min: [-123456789, 1234567890],
                    },
                    precision: 0,
                    showOrder: 0,
                    startValue: '0',
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            8: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-toolbar-Organization-list',
                        iconBgcolor: '#B32E37',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: true,
                        linkUrl: '/spa/hrm/engine.html#/hrmengine/roleInfo/info?id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('122', '角色'),
                        type: '267',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }],
                linkAge: {},
            },
            9: {
                items: [{
                    belong: 'PC',
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        linkUrl: '/hrm/jobtitles/HrmJobTitlesEdit.jsp?id=',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        title: getLabel('27219', '多岗位'),
                        type: '278',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 3,
                }],
                linkAge: {},
            },
            '9-1': {
                items: [{
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-coms-hrm',
                        iconBgcolor: '#217346',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        linkUrl: '/spa/hrm/index_mobx.html#/main/hrm/card/cardInfo/',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        tabs: [{
                            isSearch: false,
                            key: '1',
                            name: getLabel('24515', '最近'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '2',
                            name: getLabel('18511', '同部门'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '3',
                            name: getLabel('15089', '我的下属'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '4',
                            name: getLabel('25332', '组织结构'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '5',
                            name: getLabel('81554', '常用组'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '6',
                            name: getLabel('502668', '所有人'),
                            selected: false,
                            showOrder: 0,
                        }],
                        title: getLabel('83496', '多人力资源'),
                        type: '17',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
            '9-2': {
                items: [{
                    browserConditionParam: {
                        asynLoadAll: false,
                        checkStrictly: true,
                        completeParams: {},
                        conditionDataParams: {},
                        dataParams: {},
                        defaultExpandedLevel: 0,
                        destDataParams: {},
                        expandfirstnode: false,
                        hasAddBtn: false,
                        hasAdvanceSerach: true,
                        hasBorder: false,
                        hideVirtualOrg: false,
                        icon: 'icon-coms-hrm',
                        iconBgcolor: '#217346',
                        idSeparator: ',',
                        isAutoComplete: 1,
                        isDetail: 0,
                        isMultCheckbox: false,
                        isSingle: false,
                        linkUrl: '/spa/hrm/index_mobx.html#/main/hrm/card/cardInfo/',
                        pageSize: 10,
                        quickSearchName: '',
                        replaceDatas: [],
                        searchPlaceholder: '',
                        showCheckStrictly: true,
                        tabs: [{
                            isSearch: false,
                            key: '1',
                            name: getLabel('24515', '最近'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '2',
                            name: getLabel('18511', '同部门'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '3',
                            name: getLabel('15089', '我的下属'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '4',
                            name: getLabel('25332', '组织结构'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '5',
                            name: getLabel('81554', '常用组'),
                            selected: false,
                            showOrder: 0,
                        }, {
                            isSearch: false,
                            key: '6',
                            name: getLabel('502668', '所有人'),
                            selected: false,
                            showOrder: 0,
                        }],
                        title: getLabel('83496', '多人力资源'),
                        type: '17',
                        viewAttr: 2,
                    },
                    checkbox: false,
                    colSpan: 2,
                    conditionType: 'BROWSER',
                    detailtype: 1,
                    domkey: ['field'],
                    fieldcol: 5,
                    hasBorder: false,
                    helpfulTipProps: {},
                    isQuickSearch: false,
                    label: 'null',
                    labelcol: 0,
                    length: 0,
                    maxFilesNumber: 0,
                    maxUploadSize: 0,
                    multiSelection: false,
                    precision: 0,
                    showOrder: 0,
                    stringLength: 0,
                    tipPosition: 'bottom',
                    viewAttr: 2,
                }],
                linkAge: {},
            },
        
        };
        return (
            <div>
                <div className='edc-operator-group'>
                    <WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@sdfxs0`}
                        label={getLabel('528160','操作者设置')  }
                        labelCol={{ span: 6 }}
                        wrapperCol={{ span: 18 }}
                    >
                        <WeaSelect ecId={`${this && this.props && this.props.ecId || ''}_WeaSelect@qvqhsw`}
                            className="edc-addNode-set-select"
                            style={{width:'265px'}}
                            detailtype={3}
                            options={options}
                            value={itemType}
                            onChange={changeItemType}
                        />
                        <div style={{marginTop:'5px',width:'256px'}}>
                            {this.getItemForm(itemType,formInfo)}
                        </div>
                    </WeaFormItem>
                    {/* {this.getCondition()} */}
                </div>

                <WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@6rz32z`}
                        label={getLabel('502681', '已设置操作者')}
                        labelCol={{ span: 6 }}
                        wrapperCol={{ span: 18 }}
                    >
                    <div style={{ textAlign: 'right' }}>
                        <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@6s2w16`} type='primary' style={{marginRight:'2px'}} onClick={this.confirm}>{getLabel('611', '添加')}</Button>
                        {this.getTableBtns()}
                    </div>
                </WeaFormItem>
                <div style={{padding:'0px 24px'}}>
                    <div  style={{border: '1px solid #eaeaea'}}>
                    <WeaTable ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@0csgwg`}
                        style={{ height: '145px'}}
                        columns={columns}
                        dataSource={store.operatorDataSource}
                        pagination={false}
                        scroll={{ x: false, y: 100 }}
                        rowSelection={rowSelection} />
                    </div>
                    
                </div>
            </div>
        )
    }


    getTableBtns() {
        const { store } = this.props;
        const { deleteOperator } = store;
        //const selectedLen = operatorTableStore.selectedRowKeysAllPages.length;
        const selectedLen = store.selectedRowKeysAllPages.length;
        const buttons = [
            (<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@93fe4k@`} disabled={selectedLen <= 0} type="ghost" className='table-btn' onClick={deleteOperator}>{getLabel(502286, '删除')}</Button>),
        ];
        return buttons;
    }

    getItemForm = (itemType,formInfo) => {
        const { store } = this.props;
        const { operatorForm } = store;
        // const formInfo = Operator.formInfo;
        const typeDetail = formInfo[itemType] || {};
        const formParams = operatorForm.getFormParams();

        const com = [];
        if (operatorForm.isFormInit) {
            const { linkAge = {}, items = [] } = typeDetail;
            let flag = false;
            const Domkeys = [];
            items.forEach((item) => {
                const domkey = item.domkey[0];
                if (linkAge.hasOwnProperty('secField')) {
                    const link = linkAge.secField[formParams.secField] || [];
                    if (flag) {
                        if (link.length > 0) {
                            if (link.indexOf(domkey) === -1) {
                                return;
                            }
                        } else {
                            return;
                        }
                    }
                }
                if (domkey === 'secField') {
                    flag = true;
                }
                // 收集有效的domkeys
                Domkeys.push(domkey);
                if (item.conditionType === 'SELECT_LINKAGE') {
                    const linkids = this.getLinkIds(item.selectLinkageDatas);
                    if (linkids.indexOf(formParams[domkey]) !== -1) {
                        const item0 = item.selectLinkageDatas[formParams[domkey]];
                        Domkeys.push(item0.domkey[0]);
                    }
                }

                // 浏览数据定义表单字段数据过滤
                if (item.conditionType === 'BROWSER') {
                    const dataParams = item.browserConditionParam.dataParams;
                    if (Object.keys(dataParams).length > 0) {
                        item.browserConditionParam.dataParams = { ...dataParams };
                        item.browserConditionParam.completeParams = { ...dataParams };
                    }
                }
                //com.push(this.getItem(item, operatorForm, itemType));
                com.push(this.getItemDiv(item, operatorForm, itemType))
            });
        }
        return com;
    }
    getItemDiv = (item, operatorForm, itemType) => {
        const { store } = this.props;
        return (
            item.conditionType === 'BROWSER' ?
                <WeaError ecId={`${this && this.props && this.props.ecId || ''}_WeaError@haquc7`} tipPosition='bottom'
                    ref={ref => store.browserErr = ref}
                    style={{width:'256px'}}
                    error={getLabel('512119', '操作者为空')}>
                    {this.getItem(item, operatorForm, itemType)}
                </WeaError>
                : this.getItem(item, operatorForm, itemType)
        )
    }
    getItem = (item, operatorForm, itemType) => {
        const { store } = this.props;
        const domkey = item.domkey[0];
        if (!operatorForm.has(domkey)) return null;
        const formParams = operatorForm.getFormParams();
        // 判断label是否需要后置
        const showLastLabel = item.hasOwnProperty('otherParams') && item.otherParams.hasOwnProperty('showLastLabel');
        // 是否显示label
        const showLabel = item.labelcol === 0 ? false : true;
        // 是否显示提示
        const showTips = item.hasOwnProperty('otherParams') && item.otherParams.hasOwnProperty('showTips');
        const tips = showTips ? item.otherParams.showTips : {};
        const tipTitle = showTips ? tips[formParams[domkey]] : '';
        // 是否有协办人
        const hasCoadjutant = item.hasOwnProperty('otherParams') && item.otherParams.hasOwnProperty('hasCoadjutant');
        // 是否有数据联动
        // let isValueMapping = item.hasOwnProperty('otherParams') && item.otherParams.hasOwnProperty('valueMapping');
        // 样式特殊调整class
        const className = item.hasOwnProperty('otherParams') && item.otherParams.hasOwnProperty('className') ? item.otherParams.className : '';

        return (
            <div className={`itemCol ${item.conditionType} ${item.conditionType}-${className}`}>
                {showLabel && <span title={item.label} className="labelStyle">{item.label}：</span>}

                {item.conditionType === 'SELECT_LINKAGE'//如果是SELECT_LINKAGE类型,不走weaSwitch  手拼一个下拉框联动浏览按钮的效果  浏览按钮外面加上weaError
                    ?
                    (<div >
                        <WeaSelect ecId={`${this && this.props && this.props.ecId || ''}_WeaSelect@p84zd0`} options={[{ key: "2", selected: false, showname: getLabel('140', '总部') }, { key: "0", selected: false, showname: getLabel('502664', '指定部门') }, { key: "1", selected: false, showname: getLabel('502665', '指定分部') },]}
                            value={formParams.joblevel} onChange={v => operatorForm.$('joblevel').set(v)} />

                        {operatorForm.getFormParams().joblevel === '0'
                            ? <WeaError ecId={`${this && this.props && this.props.ecId || ''}_WeaError@0mszod`} style={{ marginTop:'5px' }} tipPosition='bottom' ref={ref => store.browser2Err = ref} error={getLabel('512120', '指定部门为空')}>
                                <WeaBrowser ecId={`${this && this.props && this.props.ecId || ''}_WeaBrowser@z1us4j`} type='4' viewAttr={3} inputStyle={{ width: 256 }} onChange={(ids, name, datas) => {
                                    operatorForm.$('jobid_dept').set(ids)
                                    store.jobid_deptName = name;
                                }} />
                            </WeaError>
                            : operatorForm.getFormParams().joblevel === '1'
                                ? <WeaError ecId={`${this && this.props && this.props.ecId || ''}_WeaError@drdqtu`} style={{ marginTop:'5px' }} tipPosition='bottom' ref={ref => store.browser3Err = ref} error={getLabel('512121', '指定分部为空')}>
                                    <WeaBrowser ecId={`${this && this.props && this.props.ecId || ''}_WeaBrowser@2dmq32`} type='164' viewAttr={3} inputStyle={{ width: 256 }} onChange={(ids, name, datas) => {
                                        operatorForm.$('jobid_subcom').set(ids)
                                        store.jobid_subcomName = name;
                                    }} />
                                </WeaError> : ''}
                    </div>)

                    : <WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@xlqf8y`} fieldConfig={item} form={operatorForm} formParams={formParams} onChange={this.onChange} />
                }


                {showLastLabel && <span title={item.otherParams.lastLabel} style={{ marginLeft: 5, maxWidth: item.otherParams.lastLabel.length > 6 ? '90px' : '60px' }} className="labelStyle">{item.otherParams.lastLabel}</span>}
                {showTips && <WeaHelpfulTip ecId={`${this && this.props && this.props.ecId || ''}_WeaHelpfulTip@5806yd`}
                    style={{ marginLeft: '10px', verticalAlign: 'top', display: 'inline-block', lineHeight: '30px' }}
                    width={196}
                    title={tipTitle}
                />
                }
                {hasCoadjutant &&
                    <span style={{ position: 'relative', left: '15px' }}>
                        {getLabel('502682', '协办人')}：
                <i className="icon-coms-Flow-setting" style={{ position: 'relative', top: '2px', cursor: 'pointer', fontSize: '14px' }} />
                        <i className="icon-coms-Selected" style={{ position: 'relative', top: '2px', color: '#70D256' }} />
                    </span>
                }
            </div>
        );
    }

    openRuleDesin = () => {
        //window.console.log(1);
    }

    // 第三排tab
    getCondition = () => {
        const { store } = this.props;
        const { setOrder, order } = store;
        return (
            <Row ecId={`${this && this.props && this.props.ecId || ''}_Row@zrx54d`} className='tab-3' style={{ borderTop: '1px solid #d9d9d9', padding: '8px', display: 'table', width: '100%', marginTop: 10 }}>
                {/* <div style={{ display: 'table-cell', verticalAlign: 'middle', width: '65%' }}>
                    <div style={{ lineHeight: '30px', marginRight: '15px', display: 'inline-block', verticalAlign: 'middle' }}>
                        <span style={{ paddingLeft: '12px' }}>{getLabel('502683','条件')}：</span>
                        <i className="icon-coms-Flow-setting" style={{ position: 'relative', top: '2px', cursor: 'pointer', fontSize: '14px' }} onClick={this.openRuleDesin} />
                    </div>
                    <div style={{ display: 'inline-block', width: '80%', verticalAlign: 'middle' }}>
                        <span className='child-item wdb'>yiyiyiyi</span>
                    </div>
                </div> */}

                {false && <div style={{ display: 'table-cell', verticalAlign: 'middle', textAlign: 'right' }}>
                    <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@ze4w0b`} style={{ marginTop: '5px' }} span={10}>{getLabel('502684', '批次')}：</Col>
                    <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@eze9ka`} span={12}><WeaInputNumber ecId={`${this && this.props && this.props.ecId || ''}_WeaInputNumber@4l6sps`} hideOps={true} precision={2} min={0} max={999.99} value={order} onChange={setOrder} /></Col>
                </div>}

                <div style={{ display: 'table-cell', verticalAlign: 'middle', textAlign: 'right' }}>
                    <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@558uv7`} type='primary' onClick={this.confirm}>{getLabel('502685', '添加操作者设置')}</Button>
                </div>
            </Row>
        );
    }

    // 点击添加按钮事件
    confirm = () => {
        const { store } = this.props;
        store.addOperator();
    }
    onChange = (v) => {
        //window.console.log(v);
    }

    getLinkIds = (selectLinkageDatas) => {
        const linkIds = [];
        each(selectLinkageDatas, (value, key) => {
            linkIds.push(key);
        })
        // for (let key in selectLinkageDatas) {
        //     linkIds.push(key);
        // }
        return linkIds;
    }
}